﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using wfaResClient;

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime dt = DateTime.Now;
            DeviceControl dc = new DeviceControl();
            int Handles = 0;
            Console.WriteLine("输入1打开设备");
            var a=Console.ReadLine();
            if (a == "1")
            {
                dc.openDevice(Handles);
                Console.WriteLine("打开设备成功");
            }
            var b = Console.ReadLine();
            if (b == "2")
            {
                dc.ShutDownEquipment();
                Console.WriteLine("关闭设备");
            }
            Console.ReadKey();

        }
    }
}
